﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShunFengApi.Model
{
    /// <summary>
    /// 请求消息
    /// </summary>
    public class RequestMessage<T>: RequestMessage
    {
        public T body { get; set; }

        public RequestMessage(T _body, RequestHead _head):base(_head)
        {
            this.body = _body;
        }
    }
    public class RequestMessage
    {
        public RequestHead head { get; set; }
        public RequestMessage(RequestHead _head)
        {
            this.head = _head;
        }

        public string GetSerializeString()
        {
            return JsonConvert.SerializeObject(this);
        }
    }
}
